Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.0] Fix search and version menu in docs #17898

Conversation

nsoranzo
Copy link
Member

@nsoranzo nsoranzo commented Apr 4, 2024

The html_theme_path option should not be used any more with sphinx-rtd-theme since it switches off the theme's ability to automatically enable the sphinxcontrib-jquery extension, i.e. jQuery is not loaded in the web pages when building the docs with Sphinx >=6.

xref: readthedocs/sphinx_rtd_theme#1434 (comment)

Also replace the deprecated canonical_url theme option with Sphinx's html_baseurl.

xref: https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#confval-canonical_url

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. cat doc/source/conf.versioning.py >> doc/source/conf.py
    2. TARGET_BRANCH=release_24.0 make docs-develop
    3. firefox doc/build/html/index.html
    4. Check that the search and version menu work

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

The `html_theme_path` option should not be used any more with
sphinx-rtd-theme since it switches off the theme's ability to
automatically enable the sphinxcontrib-jquery extension, i.e.
jQuery is not loaded in the web pages when building the docs with
Sphinx >=6.

xref: readthedocs/sphinx_rtd_theme#1434 (comment)

Also replace the deprecated `canonical_url` theme option with
Sphinx's `html_baseurl`.

xref: https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#confval-canonical_url
@github-actions github-actions bot added this to the 24.1 milestone Apr 4, 2024
@martenson martenson merged commit e970ae5 into galaxyproject:release_24.0 Apr 4, 2024
5 checks passed
@martenson
Copy link
Member

I was wondering about the missing jquery console error, thanks @nsoranzo !

@nsoranzo nsoranzo deleted the release_24.0_sphinx_rtd_theme_conf_fixes branch April 4, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants